<?php
    include_once("../../includes/config.inc.php");
    check_login();
    $suserSession=get_suser();
    $customer_id=$suserSession['id'];
    $model=D('info_common_fix');

    //固定的单图文，如员工通道
	if(method_is('post')){
		$data=$_POST;
        $data['info']['info_url']=$app_path."/mobile/index.php?m=index";
        $res=$model->add($data);
        die('suc');
	}else{
        $smarty->assign('infoRow',$model->where("type='ygtd'")->dataRow());

        //敏感词
        $row=array();
        $arr = D('wx_sense')->dataArr();
        foreach($arr as $k=>$v){
            if($v['word']) $row[]=$v['word'];
        }
        $senseRow = $row ? json_encode($row) : '';
        $smarty->assign('senseRow',$senseRow);

		$smarty->setTpl('info/templates/fix.html')->display();die();
	}